package com.linko.intelligent.base;

/**
 * @author yuFei
 * @date 2021年09月24日 10:32
 */
public enum ResponseStatusCode {

    //通用失败
    EQUIPMENT_COMMON_FAILED(-1, "请求失败"),

    //机械设备 80000-89999
    //业务层81000-81999
    EQUIPMENT_DEL_EQ_LIBRARY_FAILED(81001, "删除设备库失败"),
    EQUIPMENT_DEL_EQ_TYPE_FAILED(81002, "删除设备型号失败"),
    EQUIPMENT_EQ_TYPE_IN_USE(81003, "该机械型号使用中无法删除"),
    EQUIPMENT_EQ_LIBRARY_IN_USE(81004, "此机械信息当前与用户（GPS设备）有关联的逻辑关系，无法进行删除。"),

    //excel 导入
    EQUIPMENT_DEL_EQ_GPS_EXCEL_NULL(-1, "导入GPS编号不能为空");
    private Integer code;
    private String msg;

    ResponseStatusCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    ResponseStatusCode() {
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
